//
//  CampustDetailFooterView.h
//  ShowYork
//
//  Created by hxh on 2021/3/29.
//  Copyright © 2021 hxh. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CampusSchoolVideoItemModel;
NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    kXHCampusFooterLike,
    kXHCampusFooterDiss,
    kXhCampusFooterShare,
} kXHFooterType;


@protocol CampustDetailFooterViewDelegate <NSObject>

@optional
- (void)updateVideoProgressValue:(CGFloat)value;

- (void)progressBeginDraging;

- (void)changeVideoProgressValue:(CGFloat)value;
@end

@interface CampustDetailFooterView : UIView
@property (nonatomic,assign)CGFloat progressValue;
- (instancetype)initWithCompleteBlock:(void (^)(kXHFooterType type))completeBlock;
- (void)setItemModel:(CampusSchoolVideoItemModel *)itemModel;
- (void)showInView:(UIView *)mainView delegate:(nonnull id<CampustDetailFooterViewDelegate>)delegate;
@end

NS_ASSUME_NONNULL_END
